package yixaun.tim.service;

import lombok.NonNull;
import yixaun.tim.bean.account.MultiImportAccountsVo;
import yixaun.tim.bean.account.TimAccount;
import yixaun.tim.common.TimException;

import java.util.List;

/**
 * @author pengshiqing
 * @Date: 2019/6/24
 * @Description: 账号管理
 * API Doc : https://cloud.tencent.com/document/product/269/1607
 */
public interface TimAccountService {

    /**
     * 账号导入接口
     */
    void singleImport(@NonNull TimAccount account) throws TimException;

    /**
     * 帐号批量导入接口
     */
    MultiImportAccountsVo multiImport(@NonNull List<String> accounts) throws TimException;


    /**
     * 帐号登录态失效接口,移除账号
     */
    void kick(@NonNull String identifier) throws TimException;
}
